﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Kinect;
namespace UILib.UI.Xaml
{
    /// <summary>
    /// Interaction logic for AudioBeem.xaml
    /// </summary>
    public partial class AudioBeem : UserControl
    {
        private GradientStopCollection GradientStopCollectionx;



        public Double BeamAngle
        {

            get;
            set;
        }
        public AudioBeem()
        {
            InitializeComponent();
            GradientStopCollectionx = new GradientStopCollection();
            GradientStopCollectionx.Add(new GradientStop(Colors.Black,0));
            GradientStopCollectionx.Add(new GradientStop(Colors.Orange,0));
            GradientStopCollectionx.Add(new GradientStop(Colors.Orange,1));
        }



        internal float setIndecator(float p)
        {
            
            GradientStopCollectionx[1].Offset = p;
            audiobeemidecator.Fill = new LinearGradientBrush(GradientStopCollectionx, new Point(0, 0), new Point(1, 0));
            BeamAngle = p;
            return p;
        }
    }
}
